package com.simple.component;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatButton;

import com.billy.cc.core.component.CCUtil;
import com.simple.R;

/**
 * Copyright (C), 2016-2020,呼我出行网络科技有限公司
 * FileName: TargetActivity
 * Author: Administrator
 * Date: 2020/11/3 17:03
 * Description:
 * History:
 */
public class TargetActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_target);
        TextView textView = findViewById(R.id.content_tv);
        textView.setText(getIntent().getStringExtra("data")
                + getUserName());
    }

    private String getUserName() {
        String userName = getIntent().getStringExtra(Global.KEY_USERNAME);
        if (TextUtils.isEmpty(userName)) {
            CCUtil.getNavigateParam(this, Global.KEY_USERNAME, null);
        }
        return userName;
    }
}
